home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr34 / metamail.zip / MAILCAP next >
Text File  |  1994-02-03  |  10KB  |  186 lines

  1. # Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  2. # Permission to use, copy, modify, and distribute this material 
  3. # for any purpose and without fee is hereby granted, provided 
  4. # that the above copyright notice and this permission notice 
  5. # appear in all copies, and that the name of Bellcore not be 
  6. # used in advertising or publicity pertaining to this 
  7. # material without the specific, prior written permission 
  8. # of an authorized representative of Bellcore.  BELLCORE 
  9. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  10. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  11. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  12. #
  13. # Prototype Mailcap file
  14. # Note that support for text & multipart are "built in" to metamail,
  15. # as are rudimentary support for message, and application.
  16. # However, any of these may be overridden in mailcap.
  17. #
  18. # Note that users may override or extend this with a .mailcap
  19. # file in their own directory.  However, there is NO NEED
  20. # for them to copy entries from this file, as metamail will
  21. # pick up entries from both the system and personal mailcap files.
  22. #
  23. # Note that the effect of the following is to send ALL audio subtypes to the 
  24. # showaudio program, but to compose audio (e.g. in the mailto program) 
  25. # using "audio/basic" as the type.
  26. audio/*; showaudio %s
  27. audio/basic; showaudio %s; compose=audiocompose %s; edit=audiocompose %s; description="An audio fragment"
  28.  
  29. # The following line is for sites where xv understands jpeg but xloadimage is preferred.
  30. image/jpeg; showpicture -viewer xv %s
  31. # The following sends all other image subtypes to showpicture.
  32. image/*; showpicture %s
  33. # The following all appear AFTER the corresponding READING entries, and 
  34. # are for use in messages composition, e.g. in the "mailto" program
  35. # In the following lines, the exit 0 junk is necessary because xwd 
  36. # doesn't always exit with a valid exit status!
  37. # For sites with current (X11R5) pbm utilities
  38. image/gif; showpicture %s; compose="xwd -frame | xwdtopnm | ppmtogif > %s\; exit 0"; description="An X11 window image dump in GIF format"
  39. # The following line should be used instead of the previous by sites
  40. # with old (X11R4) pbm utilities
  41. #image/gif; showpicture %s; compose="xwd -frame | xwdtoppm | ppmtogif > %s\; exit 0"; description="An X11 window image dump in GIF format"
  42. # For receiving X11 window image dumps from older versions of Andrew messages
  43. image/x-xwd; showpicture %s; description="An X11 window image dump in X-XWD format"
  44.  
  45. message/partial; showpartial %s %{id} %{number} %{total}
  46. message/external-body; showexternal %s %{access-type} %{name} %{site} %{directory} %{mode} %{server}; \
  47.     needsterminal; composetyped = extcompose %s; \
  48.     description="A reference to data stored in an external location"
  49.  
  50. # You can alter the above entry to only use certain access-types by 
  51. # adding a clause like the following before the "description=" line:
  52. #    test=test %{access-type}  = mail-server;  \
  53.  
  54.  
  55. # If you have an interactive Postscript interpreter, you should think carefully 
  56. # before replacing lpr with it in the following line, because PostScript
  57. # can be an enormous security hole.  It is RELATIVELY harmless
  58. # when sent to the printer...
  59. application/postscript ; lpr %s \; echo SENT FILE TO PRINTER ; description="A Postscript File";\
  60.     compose="getfilename Postscript %s"
  61.  
  62. # The following should be commented out if you do NOT have safe-tcl
  63. # and should be uncommented if you DO have safe-tcl
  64. #multipart/enabled-mail; show-enabled %F
  65. #application/safe-tcl; swish -safe -messaging -f %s
  66.  
  67. # The following should be commented out if you do NOT have atomicmail
  68. # and should be uncommented if you DO have ATOMICMAIL
  69. #application/atomicmail; atomicmail %s; compose=surveyor.am -p %s; description="An interactive ATOMICMAIL survey"
  70. # The following should be used instead if you have atomicmail but not TK.
  71. #application/atomicmail; atomicmail %s ; needsterminal
  72. #application/atomicmail; atomicmail %s; compose=surveyor.am -p %s; description="An interactive ATOMICMAIL survey"; needsterminal
  73.  
  74. # The following give rudimentary capabilities to read old andrew format
  75. # even to non-Andrew sites, since "ezview" comes with metamail.
  76. x-be2;     ezview %s ; copiousoutput
  77. application/andrew-inset;     ezview %s ; copiousoutput; edit=ez -d %s; compose="ez -d %s"; description="An Andrew inset/document"
  78.  
  79. # The following gives rudimentary capability for receiving 
  80. # text mail in the ISO-8859-1 character set, which covers many European 
  81. # languages, and the ISO-8859-8 character set, which includes Hebrew
  82. # Note that the pipe to tr ensures that the "ISO" is case-insensitive.
  83. text/richtext; shownonascii iso-8859-8 -e richtext -p %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`"  = iso-8859-8; copiousoutput
  84. text/richtext; shownonascii iso-8859-1 -e richtext -p %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`"  = iso-8859-1; copiousoutput
  85. text/plain; shownonascii iso-8859-8 %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`" = iso-8859-8; copiousoutput
  86. text/plain; shownonascii iso-8859-1 %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`" = iso-8859-1; copiousoutput
  87. text/enriched; shownonascii iso-8859-8 -e richtext -e -p %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`"  = iso-8859-8; copiousoutput
  88. text/enriched; shownonascii iso-8859-1 -e richtext -e -p %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`"  = iso-8859-1; copiousoutput
  89.  
  90. # The following displays Japanese text at sites where the "kterm" program is installed:
  91. text/plain; kterm -geometry +0+0  -e more %s /dev/null; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`" = iso-2022-jp
  92.  
  93.  
  94. text/richtext; richtext %s; copiousoutput
  95. # If you have Andrew at your site, you MIGHT prefer to replace the
  96. # above line with the following one, but probably won't because
  97. # ez takes so long to start up.
  98. # text/richtext; richtoatk < %s | ezview - ; copiousoutput
  99. text/enriched; richtext -e %s; copiousoutput
  100.  
  101. # The following is a VERY rough cut at showing mail from Sun's openwindows mailtool
  102. # Old version
  103. # x-sun-attachment; sun-to-mime %s
  104. x-sun-attachment; sun2mime %s
  105. audio-file; sun-audio-file %s
  106. postscript-file; lpr %s \; echo SENT FILE TO PRINTER
  107. default; sun-message.csh %s %{encoding}; needsterminal
  108. mail-file; sun-message.csh %s %{encoding}; needsterminal
  109. sun-deskset-message; sun-message.csh %s %{encoding}; needsterminal
  110.  
  111. # The following is used for distributing metamail patches
  112. # It should probably be used only by those administering metamail at a site.
  113. # You will need to replace "source-tree-root" with the real root of your 
  114. # actual metamail source tree.
  115. # You can also modify this line to get metamail patches from some trusted
  116. # server other than thumper, if there is one -- man patch-metamail" for help.
  117. application/x-metamail-patch; cat %s > /dev/null \; patch-metamail source-tree-root %{patchnumber}; needsterminal
  118.  
  119. # The following is for support of MacMIME, especially those
  120. # the Columbia AppleTalk package (CAP) installed.
  121. # For more info about MacMIME, send email to paf@nada.kth.se
  122. #
  123. # If you don't have CAP, and haven't changed rcvAppleSingle
  124. # or sndAppleSingle, you should comment out this line.
  125. application/applefile; rcvAppleSingle %s; compose="sndAppleSingle %s";description="An Apple Macintosh file in AppleSingle format"
  126.  
  127. #
  128. # The following is for interoperability with Z-Mail version 3.0 and beyond.
  129. # To enable this compatibility, uncomment all of the following lines.
  130. #
  131. # For more info about Z-Mail, send email to info@z-code.com
  132. #
  133. #application/x-movie; movieplayer %s; compose=moviemaker %s; \
  134. #       description="Movie"; \
  135. #        x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  136. #application/x-inventor; examine %s; description="Inventor file"; \
  137. #        x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  138. #application/x-zm-fax; zfax %s; description="Z-Fax document"; \
  139. #    x11-bitmap="/usr/lib/Zmail/bitmaps/fax.xbm"
  140. #application/x-showcase; showcase %s; compose=showcase %s; \
  141. #    description="Showcase document"; \
  142. #    x11-bitmap="/usr/lib/Zmail/bitmaps/showcase.xbm"
  143. #application/x-jot; jot %s; compose=jot %s; description="Jot document"; \
  144. #    x11-bitmap="/usr/lib/Zmail/bitmaps/jot.xbm"
  145. #image/x-sgi; ipaste %s; compose=imgworks %s; description="SGI image"; \
  146. #    x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  147. #audio/x-aiff; playaiff %s; compose=recordaiff -t 60 %s;    \
  148. #    description="AIFF Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  149. #image/x-bitmap; bitmap %s; description="X11 bitmap"; \
  150. #    x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  151. #image/x-xpm1; olpixmap %s; description="OL pixmap"; \
  152. #    x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  153. #application/x-island-write; IslandWrite %s; compose=IslandWrite %s; \
  154. #    description="IslandWrite document"; \
  155. #    x11-bitmap="/usr/lib/Zmail/bitmaps/islwrite.xbm"
  156. #application/x-island-draw; IslandDraw %s; compose=IslandDraw %s; \
  157. #    description="IslandDraw document"; \
  158. #    x11-bitmap="/usr/lib/Zmail/bitmaps/isldraw.xbm"
  159. #application/x-island-paint; IslandPaint %s; compose=IslandPaint %s; \
  160. #    description="IslandPaint document"; \
  161. #    x11-bitmap="/usr/lib/Zmail/bitmaps/islpaint.xbm"
  162. #application/x-framemaker; maker -f %s; compose=maker -f %s; \
  163. #    description="FrameMaker document"; \
  164. #    x11-bitmap="/usr/lib/Zmail/bitmaps/frame.xbm"
  165. #application/x-wingz; Wingz %s; compose=Wingz %s; \
  166. #    description="Wingz document"; \
  167. #    x11-bitmap="/usr/lib/Zmail/bitmaps/wingz.xbm"
  168. # Old Z-mail format
  169. #x-zm-multipart: sun-to-mime %s
  170.  
  171. #Another suggested way to use FrameMaker
  172. # application/x-framemaker; clclient -f %s \; sleep 60 ; \
  173. #    compose="getfilename FrameMaker %s" 
  174.  
  175. # A common problem with the mailcap mechanism is getting differential 
  176. # behavior from different programs.  This problem is compounded by the fact 
  177. # that some programs, notably Mosaic, do not implement the "test" clause in 
  178. # mailcap files.  The following two mailcap entries should give you a model 
  179. # for a hack that will allow you to get differential behavior from Mosaic and 
  180. # metamail in spite of this fact.  It exploits the fact that metamail always 
  181. # sets the MM_MAILER variable (if only to "unknown") while Mosaic does not.
  182. #
  183. # foo/bar; echo mosaic; test=test "$MM_MAILER" = ""
  184. # foo/bar; echo not mosaic
  185.